<template>
	<web-view :src="url"></web-view>
</template>

<script setup>
import { computed, ref, watch } from 'vue';
import { onReady, onLoad, onReachBottom, onShow, onHide } from '@dcloudio/uni-app';
import useUserStore from '@/store/modules/user'
import useSetStore from '@/store/modules/set'
import { throttle, debounce } from '@/uni_modules/uview-plus'
import { toast } from '@/utils/common'
import { webList } from '@/utils/config'

	const userStore = useUserStore()
	const setStore = useSetStore()
	const url = ref('')
	onLoad((option) => {
		if (option.type) {
			const web = webList.find(item => item.type == option.type)
			url.value = web?.url ? setStore.baseUrl + web.url : ''
			uni.setNavigationBarTitle({
				title: web?.title || ''
			})
		}
	})
</script>

<style lang="scss">
	
</style>
